package com.yoj.judgeservice.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 代码沙箱接口调用密钥配置
 */
@Component
@Data
@ConfigurationProperties(prefix = "codesandbox.remote")
public class CodeSandboxProperties {

    // 从配置文件读取代码沙箱类别，默认值为 remote
    @Value("${codesandbox.type:remote}")
    private String type;

    // 访问密钥
    private String accessKey;

    // 私密密钥
    private String secretKey;

    // 请求地址
    private String url;
}
